<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta charset="UTF-8">
        <title>代理中心-首页</title>
        <link href="__HOME_CSS__/agent/css/base.css" rel="stylesheet">
        <link href="__HOME_CSS__/agent/css/font.css" rel="stylesheet">
        <link href="__HOME_CSS__/agent/css/main.css" rel="stylesheet">
        <link id="_style" href="__HOME_CSS__/agent/css/color.css" rel="stylesheet">
    </head>
    <body>
        <div class="main-box">
            <div class="menu-side">
                <div class="sub-title" onclick="goIndex();">
                    <div class="login2-logo"></div>
                </div>
                <div class="sub-menu">
                    <dl>
                        <dd <if condition="$curr eq 'userlist'"> class="active"</if>><a href="{:U('Home/Agent/userlist')}"><i class="icon-profile"></i><span>下级列表</span></a></dd>
                        <dd <if condition="$curr eq 'usertable'">class="active"</if>><a href="{:U('Home/Agent/usertable')}"><i class="icon-table"></i><span>佣金记录</span></a></dd>
						   <dd <if condition="$curr eq 'user_salary'">class="active"</if>><a href="{:U('Home/Agent/user_salary')}"><i class="icon-table"></i><span>工资记录</span></a></dd>
						      <dd <if condition="$curr eq 'user_fenhong'">class="active"</if>><a href="{:U('Home/Agent/user_fenhong')}"><i class="icon-table"></i><span>分红记录</span></a></dd>
                        <dd <if condition="$curr eq 'userlink'">class="active"</if>><a href="{:U('Home/Agent/userlink')}"><i class="icon-link"></i><span>推广网址</span></a></dd>
                        <dd <if condition="$curr eq 'password'">class="active"</if>><a href="{:U('Home/Agent/password')}"><i class="icon-lock"></i><span>密码管理</span></a></dd>
                    </dl>
                </div>
            </div>
            <div class="main-col">
                <div class="m-userinfo">
                    <div class="welcome-user">欢迎登录，<span class="username"><?php echo $_SESSION['agent_name']?></span></div>
                    <div class="base-info clearfix">
                        <div class="user-set"><span id="login_time">上次登陆：<?php echo date('Y-m-d H:i',$_SESSION['agent_last_login_time'])?></span>  
                            <a href="{:U('Home/Agent/password')}" id="pwd">密码修改</a>
                             <a href="{:U('Home/Agent/sms')}">站内信息</a>
                            <a href="{:U('Home/Agent/index')}">网站公告</a>
                        </div>
                        <div class="user-loginout" onclick="salfOut();"><a href="{:U('Home/Agent/logout')}" class="user-button loginout">安全退出</a></div>
                    </div>
                </div>